<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">网站名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-website_name" data-rule="required" class="form-control" name="row[website_name]" type="text">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Website_icon')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-website_icon" data-rule="required" class="form-control" name="row[website_icon]" type="text">
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">网站icon图片:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="35" name="row[Website_icon]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <!-- <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> -->
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Website_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-website_url" data-rule="required" class="form-control" name="row[website_url]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Website_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-website_title" data-rule="required" class="form-control" name="row[website_title]" type="text">
        </div>
    </div>
   
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('WebsiteTypeId')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-websiteTypeId" data-rule="required" class="form-control" name="row[websiteTypeId]" type="number">
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('WebsiteTypeId')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[websiteTypeId]">
                {foreach name="webSiteClass" item="vo"}
                <option value="{$vo['websiteIdTypeId']}" {in name="key" value=""}selected{/in}>{$vo['websiteTypeName']}</option>
                {/foreach}
            </select>
 
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('DateTime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dateTime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[dateTime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_state')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_state" data-rule="required" class="form-control" name="row[is_state]" type="number">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_state]', ['0'=>'正常', '1'=>'禁用'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
